package demo2;

class Animal {
    private String color;
    private int legs;
    public Animal(String color,int legs){
        this.color = color;
        this.legs = legs;
    }

    public void eat() {
        System.out.println("吃饭");
    }
}
